// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial

export TestCase := Rectangle {
    states [
        checked when true: {
            foo
        }
//      ^error{Syntax error: expected ':'}
    ]
}
